import request from './request.js'

const active = {
	//活动列表（无需登录）
	getActiviteList(data) {
		return request.get('pub/getActiviteList', {
			data
		})
	},
	//活动详情
	getActiviteInfo(data) {
		return request.get('pub/getActiviteInfo', {
			data
		})
	},
	//我的活动列表
	activeList(data) {
		return request.get('member/activeList', {data})
	},
	//活动报名
	activeCorder(data) {
		return request.post('member/activeCorder', data)
	},
	//取消活动报名
	activeOrderCancel(data) {
		return request.get('member/activeOrderCancel', {
			data
		})
	},
	//活动支付
	activePay(data) {
		return request.post('member/activePay', data)
	},
	//检查用户是否已报名某活动
	isJoinActive(data) {
		return request.get('member/isJoinActive', {
			data
		})
	},
}
export default active